// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import scss from './assets/sass/style.scss'

import './assets/fonticon/iconfont.css'
import 'swiper/swiper-bundle.css'
import Swiper, {Navigation, Pagination} from 'swiper'
import VueAwesomeSwiper from 'vue-awesome-swiper'
import Card from './components/common/Card.vue'
import Cardlist from './components/common/Cardlist.vue'
import axios from 'axios'

Vue.config.productionTip = false

Vue.use(VueAwesomeSwiper)

Vue.component('m-card',Card)
Vue.component('m-cardlist',Cardlist)

Vue.prototype.$http = axios.create({
  baseURL:'http://localhost:3000/web/api'
})

Swiper.use([Navigation, Pagination])
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
